package com.atguigu.spzx.pay.mapper;

import com.atguigu.spzx.model.entity.pay.PaymentInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

@Mapper
public interface PaymentInfoMapper {
    void addPayMentInfo(PaymentInfo paymentInfo);


    PaymentInfo getByOrderNo(String orderNo);

    void afterPaySuccess(@Param("tradeNo") String tradeNo, @Param("orderNo") String orderNo, @Param("content")String content);

    void updatePayment(@Param("status") int status,@Param("refundTime") Date refundTime,@Param("orderNo") String orderNo);
}
